package cn.pxs.entity;

//用于 一对一 每一个cart 对 每一本书
public class CartBook {
    private Cart cart;
    private NewBook book;

    public Cart getCart() {
        return cart;
    }

    public void setCart(Cart cart) {
        this.cart = cart;
    }

    public NewBook getBook() {
        return book;
    }

    public void setBook(NewBook book) {
        this.book = book;
    }

    @Override
    public String toString() {
        return "CartBook{" +
                "cart=" + cart +
                ", book=" + book +
                '}';
    }
}
